home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2 Examples.sit / Raven 1.2 Examples / Quill / Source / MacButtonEditor.h < prev    next >
Text File  |  1997-01-06  |  2KB  |  75 lines

  1. /*
  2.  *  File:       MacButtonEditor.h
  3.  *  Summary:       A view that knows how to edit a TMacButton.
  4.  *  Written by: Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1996 Jesse Jones. 
  7.  *    For conditions of distribution and use, see copyright notice in ZTypes.h  
  8.  *
  9.  *  Change History (most recent first):    
  10.  *
  11.  *         <->     1/06/96    JDJ        Created
  12.  */
  13.  
  14. #pragma once
  15.  
  16. #include <ZMacButton.h>
  17.  
  18. #include "BasePaneEditor.h"
  19.  
  20.  
  21. // ===================================================================================
  22. //    class CEditMacButtonCommand
  23. // ===================================================================================
  24. class CEditMacButtonCommand : public CBaseEditPaneCommand<TMacButton, SMacButtonInfo> {
  25.  
  26.     typedef CBaseEditPaneCommand<TMacButton, SMacButtonInfo> Inherited;
  27.  
  28. //-----------------------------------
  29. //    Initialization/Destruction
  30. //
  31. public:
  32.     virtual             ~CEditMacButtonCommand();
  33.     
  34.                         CEditMacButtonCommand(TMacButton* pane, const SMacButtonInfo& oldInfo, const SMacButtonInfo& newInfo);
  35.     
  36. //-----------------------------------
  37. //    Inherited API
  38. //
  39. public:
  40.     virtual    void         UpdatePane(const SMacButtonInfo& newInfo);
  41. };
  42.  
  43.  
  44. // ===================================================================================
  45. //    CMacButtonEditor
  46. // ===================================================================================
  47. class CMacButtonEditor : public CBasePaneEditor<TMacButton, SMacButtonInfo, CEditMacButtonCommand> {
  48.  
  49.     typedef CBasePaneEditor<TMacButton, SMacButtonInfo, CEditMacButtonCommand> Inherited;
  50.     
  51. //-----------------------------------
  52. //    Initialization/Destruction
  53. //
  54. public:
  55.     virtual                ~CMacButtonEditor();
  56.                         
  57.                         CMacButtonEditor(TView* superView);
  58.  
  59. //-----------------------------------
  60. //    Inherited API
  61. //
  62. protected:
  63.     virtual SMacButtonInfo GetEditorInfo() const;
  64.             
  65.     virtual void         SetEditorInfo(const SMacButtonInfo& info);
  66.                         
  67. //-----------------------------------
  68. //    TReanimator Support
  69. //
  70. public:
  71.     static     MReanimatable* Create(MReanimatable* parent);
  72. };
  73.  
  74.  
  75.